import yaml

class YamlHandler:
    def __init__(self):
        super(YamlHandler, self).__init__()
        self.yamlFile = None
        self.yamlData = None

    def reader(self, yamlFile):
        with open(yamlFile, encoding='utf-8') as f:
            self.yamlData = yaml.load(f, Loader=yaml.SafeLoader)
        return self.yamlData
